﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;

namespace ZhimeiSoft.CharmManager.DOL
{
    public class DBEntityPayType: DBEntityBase
    {
        /// <summary>
        /// 支付方式表
        /// </summary>
        /// <returns></returns>
        public override string GetTableName()
        {
            return "PayType";
        }

        public DBEntityPayType()
            : base()
        {
        }
        public DBEntityPayType(DataRow drRow)
        {
            this.PayTypeID = Convert.ToInt32(drRow[DBEntityPayType.FieldName.PAYTYPEID]);
            this.PName = drRow[DBEntityPayType.FieldName.PNAME].ToString();
            this.PMemo = drRow[DBEntityPayType.FieldName.PMEMO].ToString();
        }

        /// <summary>
        /// 支付方式ID
        /// </summary>
        public int PayTypeID { get; set; }
        /// <summary>
        /// 支付方式名称
        /// </summary>
        public string PName { get; set; }
        
        /// <summary>
        /// 备注
        /// </summary>
        public string PMemo { get; set; }

        /// <summary>
        /// 字段名称
        /// </summary>
        public static class FieldName
        {
            /// <summary>
            /// 支付方式ID
            /// </summary>
            public const string PAYTYPEID = "PAYTYPEID";

            /// <summary>
            /// 支付方式名称
            /// </summary>
            public const string PNAME = "PNAME";

            /// <summary>
            /// 备注
            /// </summary>
            public const string PMEMO = "PMEMO";
        }
    }
}
